import scrapy
import json


class spa1Spider(scrapy.Spider):
    name = "spa1"
    start_urls = []
    for n in range(10):
        start_urls.append(f'https://spa1.scrape.center/api/movie/?limit=10&offset={n * 10}')

    def parse(self, response, **kwargs):
        yield {'data': json.loads(response.body)['results']}
